#  斐波那契数列
list = [0,1]
for i in range(1,20):
    if list[-1]<100:
        list.append(list[i-1]+list[i])
    else:
        print(list)
        break



#   斐波那契数列 方法二
s1 = 0
s2 = 1
print(s1)
print(s2)
for i in  range(1,101):
    if i == s1 + s2:
        print(i)
        s1 , s2 = s2, i

# 后续讲到递归的话，在用递归试下